//
//  BarrierZombie.m
//  OCDay2homework
//
//  Created by dllo on 16/5/23.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "BarrierZombie.h"
#import "NormalZombie.h"
@implementation BarrierZombie
-(void)setProps:(NSString *)props{
    _props = props;
}
-(NSString *)props{
    return _props;
}
-(void)setWeakness:(NSString *)weakness{
    _weakness = weakness;
}
-(NSString *)weakness{
    return _weakness;
}
-(instancetype)initWithHealth:(NSInteger)health withReduceHealth:(NSInteger)reduceHealth withProps:(NSString *)props withWeakness:(NSString *)weakness{
    self = [super init];
    if(self){
        _health = health;
        _reduceHealth = reduceHealth;
        _props = props;
        _weakness = weakness;
    }
    return self;
}
+(instancetype)BarrierZombieWithHealth:(NSInteger)health withReduceHealth:(NSInteger)reduceHealth withProps:(NSString *)props withWeakness:(NSString *)weakness{
    BarrierZombie *barZom = [[BarrierZombie alloc] initWithHealth:health withReduceHealth:reduceHealth withProps:props withWeakness:weakness];
    return barZom;
}
@end
